<template>
  <router-view></router-view>
</template>

<script setup lang="ts">
import { onMounted } from "vue";
import { useStore } from "@/store/index";
const store = useStore();
onMounted(() => {
  window.onresize = () => {
    const width =
      document.documentElement.offsetWidth || document.body.offsetWidth;
    store.setOffsetWidth(width);
  };
});
</script>

<style lang="scss">
@import "./styles/reset.scss";
@import "./styles/transition.scss";
#app {
  width: 100%;
  height: 100%;
}
</style>
